<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>01_let</title>
</head>

<body>
    <script type="text/javascript">
        let a
        let b, c, d
        let e = 100
        let f = 521, g = 'iloveyou', h = []

        let star = '罗志祥'
        //let star = '小猪'

        const arr = ['我', 'lzx', 100]
        let [aa, bb, cc] = arr
        console.log(aa, bb, cc);

        const obj = {
            name: 'lzx',
            age: 40,
            fn: function () {
                console.log("this is a fn");
            }
        }

        let { name, age, fn } = obj
        console.log(name, age, fn);

        //模板字符串
        let str = `<ul>
                    <li>a</li>
                    <li>a</li>
                   </ul>`
        let str1 = `${str} this is a template str`
        console.log(str1);

    </script>
</body>

</html>